<portlet return="array" return_var="frags"  cache="60" 
  			 limit="200" showpages="0"  recursive="-1" conditions="deleted[]=0" 
			 model="Frag" order="RAND()"></portlet>
		 
<?php 
$frags =  $frags['datalist'];
$frag_index = 0;
 ?>
 
<div id="system-style-list">
	{{$page_navi}}
	<div  class="row ui-portlet" style="position:relative;">
       {{loop $styles $item}}
       	<div id="es-{{$item['EditorStyle']['id']}}" class="col-sm-12 col-md-4">
       		{{if $item['EditorStyle']['cate_id'] > 49}}
				<p class="135editor" style="text-align:center;" data-id="{{$item['EditorStyle']['id']}}"><img data-id="{{$item['EditorStyle']['id']}}" src="{{$item['EditorStyle']['coverimg']}}" /></p>
			{{else}}
				<?php $content =  parseFragContent($item['EditorStyle']['content'],$frags[$frag_index],$frag_index);  ?>
				<section class="135editor" style="position:static;box-sizing: border-box;" data-id="{{$item['id']}}">{{$content}}<section style="display: block; width: 0; height: 0; clear: both;"></section></section>
			{{/if}}
       	</div>
  		{{/loop}}
    </div>
    <div class="clear:both;"></div>
    {{$page_navi}}
</div>
